import { createRouter, createWebHistory } from 'vue-router'
import LoginPage from '../views/LoginPage.vue'
import DashboardPage from '../views/DashboardPage.vue'
import ChatPage from '../views/ChatPage.vue'
import ReportGenerationPage from '../views/ReportGenerationPage.vue'
import AccountSettingsPage from '../views/AccountSettingsPage.vue'
import AgentManagementPage from '../views/AgentManagementPage.vue'
import DataScreenPage from '../views/DataScreenPage.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/dashboard'
    },
    {
      path: '/login',
      name: 'login',
      component: LoginPage
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: DashboardPage
    },
    {
      path: '/chat',
      name: 'chat',
      component: ChatPage
    },
    {
      path: '/reports',
      name: 'reports',
      component: ReportGenerationPage
    },
    {
      path: '/account-settings',
      name: 'settings',
      component: AccountSettingsPage
    },
    {
      path: '/agents',
      name: 'agents',
      component: AgentManagementPage
    },
    {
      path: '/screen',
      name: 'DataScreen',
      component: DataScreenPage
    }
  ]
})

export default router
